<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue求和</title>
		<script src="../js/vue.js">
			
		</script>
	</head>
	<body>
		<p id="app" >{{sum(a,b)}}
		<input type="number" v-model="a"/>
		<input type="number" v-model="b"/>
		</p>
		
		
		<!-- <button type="button" @click="show()">点我</button> -->
		<script>
			new Vue({
				el:"#app",
				data:{
					a:0,
					b:0
				},
				methods:{
					sum:function(a,b){
						return (a+b);
						console.log(typeof a)
					}
				}
			})
		</script>
	</body>
</html>
